package com.stgy.lease.web.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.stgy.lease.model.domain.LeaseAgreement;
import com.baomidou.mybatisplus.extension.service.IService;
import com.stgy.lease.web.admin.dto.AgreementInfoSearchDto;
import com.stgy.lease.web.admin.vo.AgreementDetailsVo;
import com.stgy.lease.web.admin.vo.AgreementInfoVo;

/**
* @author lingx
* @description 针对表【lease_agreement(租约信息表)】的数据库操作Service
* @createDate 2024-08-28 11:00:29
*/
public interface LeaseAgreementService extends IService<LeaseAgreement> {

    //条件分页查询租约列表
    Page<AgreementInfoVo> pageItem(AgreementInfoSearchDto searchDto);

    //根据id查询租约详情
    AgreementDetailsVo getDetailsById(Long id);

    //新增或更新租约信息
    boolean saveOrUpdateAgreement(LeaseAgreement leaseAgreement);

    //定时检查租约状态： 更新或删除租约状态
    void checkAgreementStatus();

    //根据id修改租约状态
    boolean updateStatusById(Long id, Integer status);
}
